﻿using DarrenSoft.DataAccessLayer.Interfaces;
using DarrenSoft.DataAccessLayer.Repositories;
using DarrenSoft.Domain.Entities;
using System.Collections;
namespace DarrenSoft.Facade
{
    
    public class AdministratorFacade : BaseFacade<Administrator>, IAdministratorFacade
    {   
       
        #region IAdministratorFacade 成员
        public AdministratorFacade()
            : base()
        {
            base.Repository = new AdministratorRepository();
        }
        public bool CheckAdminLogin(string UserName, string UserPwd)
        {
            Hashtable hash = new Hashtable();
            hash.Add("UserName", UserName);
            hash.Add("UserPwd", UserPwd);
            return this.Repository.IsExistKey(hash);
        }
        #endregion
    }
}
